package com.biqee.service.db.impl;

import com.biqee.dao.BqUserDAO;
import com.biqee.model.db.BqUser;
import com.biqee.service.db.BqUserService;

public class BqUserServiceImpl implements BqUserService {

	@Override
	public BqUser readByLoginName(String loginName) {
		return bqUserDAO.readByLoginName(loginName);
	}

	@Override
	public BqUser readById(Long id) {
		return bqUserDAO.readById(id);
	}

	@Override
	public Long create(BqUser bqUser) {
		return bqUserDAO.create(bqUser);
	}

	@Override
	public int updatePassword(Long id, String password) {
		return bqUserDAO.updatePassword(id, password);
	}

	private BqUserDAO bqUserDAO;

	public BqUserDAO getBqUserDAO() {
		return bqUserDAO;
	}

	public void setBqUserDAO(BqUserDAO bqUserDAO) {
		this.bqUserDAO = bqUserDAO;
	}
	
	
}
